package com.example.eurekaserverclientusefeign;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class OneInterfaceFallbackFactory implements FallbackFactory<OneInterface> {
    @Override
    public OneInterface create(Throwable cause) {
        return new OneInterface() {
            @Override
            public String testPort() {
                return "fallback testport 熔断";
            }
        };
    }
}
